<?php
$actionadmin = isset($_REQUEST["actionadmin"])?$_REQUEST["actionadmin"]:"Quản Lý Đơn Đặt Sân";
//thành viên
if ($actionadmin=="Thành Viên")
$fileinclude = "include/thanhvien.php";
if ($actionadmin=="Tìm Kiếm Thành Viên")
$fileinclude = "include/thanhvien-timkiem.php";
if ($actionadmin=="Update Thành Viên")
$fileinclude = "include/thanhvien-update.php";
if ($actionadmin=="Delete Thành Viên")
{
$fileinclude = "include/thanhvien-del.php"; $actionadmin="";
}
//giờ hoạt động
if ($actionadmin=="Giờ Hoạt Động")
$fileinclude = "include/giohoatdong.php";
if ($actionadmin=="Thêm Giờ Hoạt Động")
$fileinclude = "include/giohoatdong-insert.php";
if ($actionadmin=="Sửa Giờ Hoạt Động")
$fileinclude = "include/giohoatdong-update.php";
if ($actionadmin=="Xóa Giờ Hoạt Động")
{
$fileinclude = "include/giohoatdong-del.php"; $actionadmin="";
}
//sân
if($actionadmin==="Sân")
$fileinclude="include/san.php";
if($actionadmin=="Thêm Sân")
$fileinclude="include/san-insert.php";
if($actionadmin=="Delete Sân")
{
$fileinclude="include/san-del.php";  $actionadmin="";
}
if($actionadmin=="Update Sân")
$fileinclude="include/san-update.php";
//giá sân
if ($actionadmin=="Giá Sân")
$fileinclude = "include/giasan.php";
if ($actionadmin=="Thêm Giá Sân")
$fileinclude = "include/giasan-insert.php";
if ($actionadmin=="Sửa Giá Sân")
$fileinclude = "include/giasan-update.php";
if ($actionadmin=="Xóa Giá Sân")
{
$fileinclude = "include/giasan-del.php"; $actionadmin="";
}
//Đơn đặt sân
if($actionadmin=="Quản Lý Đơn Đặt Sân")
$fileinclude="include/timkiemdondatsan.php";
if($actionadmin=="Chi Tiết Đơn Đặt Sân")
$fileinclude="include/chitietdondatsan.php";
if($actionadmin=="Lịch Biểu")
$fileinclude="include/lichdatsan.php";

//Thống kê
if($actionadmin=="Thống Kê Đơn Đặt Sân")
$fileinclude="include/thongkedondatsan.php";

//logout
if ($actionadmin=="logout")
$fileinclude = "include/logout.php";
?>
<!--  start page-heading -->
	<div id="page-heading">
		<h1><?php echo $actionadmin; ?></h1>
	</div>
	<!-- end page-heading -->

	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
        	<!--  start message-yellow -->
				<div id="message-yellow">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="yellow-left">You have a new message. <a href="">Go to Inbox.</a></td>
					<td class="yellow-right"><a class="close-yellow"><img src="images/table/icon_close_yellow.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-yellow -->
				
				<!--  start message-red -->
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">Error. <a href="">Please try again.</a></td>
					<td class="red-right"><a class="close-red"><img src="images/table/icon_close_red.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-red -->
				
				<!--  start message-blue -->
				<div id="message-blue">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="blue-left">Welcome back. <a href="">View my account.</a> </td>
					<td class="blue-right"><a class="close-blue"><img src="images/table/icon_close_blue.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-blue -->
			
				<!--  start message-green -->
				<div id="message-green">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">Product added sucessfully. <a href="">Add new one.</a></td>
					<td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-green -->
		  <div id="content-table-inner">
			<!--  start table-content  -->
                <?php
					include $fileinclude;
				?>
			
			<div class="clear"></div>
		 
		</div>
            <!--  -->
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>
				